package com.it.park.common;

import java.util.Random;

/**
 * @author daihuajun
 *注册时随机生成中文名
 */
public class NameHelper {
	private static String NAME="赵钱孙李周吴郑王冯陈褚卫蒋沈韩杨朱秦尤许何吕施张孔曹严华金魏陶姜戚谢邹喻柏水窦章云苏潘葛奚范彭郎鲁韦昌马苗凤花方俞任袁柳酆鲍史唐费廉岑薛雷贺倪汤滕殷罗毕郝邬安常乐于时傅皮卞齐康伍余元卜顾孟平黄和穆萧尹姚邵湛汪祁毛禹狄米贝明臧计伏成戴谈宋茅庞熊纪舒屈项祝董梁杜阮蓝闵席季麻强贾路娄危江童颜郭梅盛林刁钟徐邱骆高夏蔡田樊胡凌霍虞万支柯咎管卢莫经房裘缪干解应宗宣丁贲邓郁单杭洪包诸左石崔吉钮龚程嵇邢滑裴陆荣翁荀羊於惠甄魏加封芮羿储靳汲邴糜松井段富巫乌焦巴弓牧隗山谷车侯宓蓬全郗班仰秋仲伊宫宁仇栾暴甘钭厉戎祖武符刘姜詹束龙叶幸司韶郜黎蓟薄印宿白怀蒲台从鄂索咸籍赖卓蔺屠蒙池乔阴郁胥能苍双闻莘党翟谭贡";
	private static String STR = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_";
	
	public static String chName(){
		StringBuilder builder = new StringBuilder();
		Random random = new Random();
		String[] NM = NAME.split("");
		String[] S = STR.split("");
		
		for (int i = 0; i < 3; i++) {
			builder.append(NM[random.nextInt(NM.length)]);
		}
		for (int i = 0; i < 3; i++) {
			builder.append(S[random.nextInt(S.length)]);
		}
		System.out.println(builder.toString());
		return builder.toString();
	}
	public static void main(String[] args) {
		chName();
	}
}
